
const lists = '{"code":"200","msg":"OK","data":[{"routerId":1,"isLock":false,"name":"system","path":"/sys","permission":"system","component":"layoutHeaderAside","componentPath":"layout/header-aside/layout","meta":{"auth":true,"cache":false,"title":"系统设置"},"children":[{"routerId":2,"parentId":1,"isLock":false,"name":"system-menu","path":"/sys/menu","permission":"system:menu","component":"menu","componentPath":"","meta":{"auth":true,"cache":false,"title":"菜单管理"}},{"routerId":3,"parentId":1,"isLock":false,"name":"system-router","path":"/sys/router","permission":"system:router","component":"router","componentPath":"","meta":{"auth":true,"cache":false,"title":"路由管理"}},{"routerId":4,"parentId":1,"isLock":true,"name":"system-role","path":"/sys/role","permission":"system:role","component":"role","componentPath":"","meta":{"auth":true,"cache":false,"title":"角色管理"}}]}]}'
const info1 = '{"code":"200","msg":"OK","data":{"routerId":1,"url":"/sys","routerName":"system","title":"系统设置","permission":"system","component":"layoutHeaderAside","componentPath":"layout/header-aside/layout","sort":0,"isLock":false,"cache":false,"remark":"系统设置的根路径","createTime":1579242975000,"updateTime":1579242975000,"creator":"admin"}}'
const info4 = '{"code":"200","msg":"OK","data":{"routerId":4,"parentId":1,"url":"/sys/role","routerName":"system-role","title":"角色管理","permission":"system:role","component":"role","componentPath":"","sort":0,"isLock":true,"cache":false,"remark":"","createTime":1579242975000,"updateTime":1579242975000,"creator":"admin"}}'

export default [
  {
    path: '/api/system/router/list',
    method: 'get',
    handle () {
      return JSON.parse(lists)
    }
  },
  {
    path: '/api/system/router/info/1',
    method: 'get',
    handle () {
      return JSON.parse(info1)
    }
  },
  {
    path: '/api/system/router/info/4',
    method: 'get',
    handle () {
      return JSON.parse(info4)
    }
  }
]
